﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	List
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<div class="form_settings">

    <h2>List</h2>

    <a href="../../Movies/Create">Add Movie</a>

    <br /><br />

    <table>
        <tr>
            <th></th>
            <th>Id</th>
            <th>Movie Title</th>
            <th>Date Released</th>
            <th>Description</th>
        </tr>

        <% foreach (var Movies in Model.Movies) { %>

            <tr>

                <td>

                    <%= Html.ActionLink("Edit", "Edit", new { id = Movies.Id })%>

                </td>

                <td>

                    <%= Html.Encode(Movies.Id)%>

                </td>

                <td>

                    <%= Html.Encode(Movies.MovieTitle)%>

                </td>

                <td>

                    <%= Html.Encode(Movies.ReleaseDate)%>

                </td>

                <td>

                </td>

            </tr>

        

        <% } %> 



    </table>

</div>

</asp:Content>
